package com.hwadee.teachingprocessmanagementsystem.service.base.impl;

import com.hwadee.teachingprocessmanagementsystem.entity.Course;
import com.hwadee.teachingprocessmanagementsystem.entity.CourseClasses;
import com.hwadee.teachingprocessmanagementsystem.dao.CourseClassesDao;
import com.hwadee.teachingprocessmanagementsystem.entity.Student;
import com.hwadee.teachingprocessmanagementsystem.entity.Teacher;
import com.hwadee.teachingprocessmanagementsystem.service.base.CourseClassesService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;

import java.util.List;


/**
 * (CourseClasses)表服务实现类
 *
 * @author makejava
 * @since 2024-07-14 10:41:44
 */
@Service("courseClassesService")
public class CourseClassesServiceImpl implements CourseClassesService {
    @Resource
    private CourseClassesDao courseClassesDao;

    /**
     * 通过ID查询单条数据
     *
     * @param
     * @return 实例对象
     */
    @Override
    public CourseClasses queryById() {
        return this.courseClassesDao.queryById();
    }

    /**
     * 根据条件查询学生的课程班级信息
     * @param student
     * @return
     */
    @Override
    public List<CourseClasses> queryAllByLimit(Student student) {
        return this.courseClassesDao.queryAllByLimit(student);
    }

    public List<CourseClasses> queryAllByCourseId(String courseId){
        return this.courseClassesDao.queryAllByCourseId(courseId);
    }

}
